package com.tohours.aia.service;

import java.util.Map;

import org.springside.modules.orm.Page;

import com.tohours.aia.entity.Customer;
import com.tohours.aia.entity.GiftLog;


public interface AwardService {
	

	/**
	 * 输入保单号或ID号登录
	 * @param idOrSplit
	 */
	Customer login(String idOrSplit);
	
	/**
	 * 根据ID获得Customer
	 * @param id
	 * @return
	 */
	Customer getCustomer(String id);
	
	/**
	 * 抽奖
	 * @return
	 */
	GiftLog loterry(String customerId);
	
	/**
	 * 
	 * @param key
	 * @param page
	 * @return
	 */
	Page<GiftLog> searchGiftLog(Map<String, Object> key, Page<GiftLog> page);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	GiftLog getGiftLog(String id);
	
	/**
	 * 
	 * @param giftLog
	 * @return
	 */
	GiftLog editGiftLog(GiftLog giftLog);
}
